@import "node_modules/ol/ol.css";

html, body {
  margin: 0;
  height: 100%;
}

body {
  display: flex;
}

.layer-control input {
  margin-right: 8px;
}

.layer-control label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.left-panel,
.middle-panel,
.right-panel {
  box-sizing: border-box;
}

.left-panel {
  width: 18%;
  border: 1px solid #ccc;
  flex-grow: 1;
}

.middle-panel {
  width: 64%;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  flex-grow: 1;
  margin-left: -1px;
  margin-right: -1px;
}

.right-panel {
  width: 18%;
  border: 1px solid #ccc;
  flex-grow: 1;
}

header {
  border-bottom: 1px solid #ccc;
  box-sizing: border-box;
}

footer {
  border-top: 1px solid #ccc;
  box-sizing: border-box;
}

.map-container {
  flex-grow: 1;
  position: relative;
  height: 100%;
}

#map {
  width: 100%;
  height: 100%;
}

.map-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 10px 15px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  opacity: 0.87;
  width: 220px;
}

.layer-control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}

.layer-control-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.toggle-icon {
  transition: transform 0.2s ease;
  font-size: 14px;
}

.toggle-icon.rotated {
  transform: rotate(90deg);
}

.layer-control-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.layer-control-content.expanded {
  max-height: 500px;
  transition: max-height 0.5s ease-in;
}